import request from '@utils/request'
// 修改云乡基础
export function resetBasic(data) {
  return request({
      url: '/business/basic',
      headers: {
          isToken: false
      },
      method: 'put',
      data: data
  })
}

// 智能发送消息
export function senMessage(socketConfig) {
  return request({
    url: '/resource/ai/dialogue',
      headers: {
          isToken: false
      },
      method: 'post',
      data: socketConfig
  })
}

// 获取智能助手历史记录
export function getHistorys(pageNumber,pageSize) {
  return request({
    url: '/resource/aiChat/getList?current=' + pageNumber +'&pageSize=' + pageSize,
      headers: {
          isToken: false
      },
      method: 'get',
  })
}